package testrj.runner.asserter;

import testrj.runner.AssertException;

public class EqualsAsserter implements Asserter {
	public void assertEquals(Object expected, Object actual) {
		if (expected == null && actual == null)
			return;
		if (expected != null && expected.equals(actual))
			return;
		throw new AssertException("expected:<" + expected + "> but was:<" + actual + ">");
	}
}